#include "stdafx.h"
#include "TestUtils.h"
#include <iostream>
using namespace std;

TestUtils::TestResult TestUtils::VerifyIsTrue(bool cond, string message)
{
	if (!cond)
	{
		cout << message << endl;
		return TestUtils::TestFailed;
	}
	return TestUtils::TestPassed;
}

void TestUtils::PrintTestResult(string scenario, TestResult result)
{
	string resultStr;
	if (result==TestUtils::TestFailed)
	{
		resultStr = "FAILED";
	} else
	{
		resultStr = "Passed";
	}

	cout << "Test : " << scenario<< " "  << resultStr << endl;
}